package one;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;

@SuppressWarnings("deprecation")
public class Three_RS extends SeleneseTestCase {
	public SeleniumServer rs;
	@Before
	public void setUp() throws Exception {
		rs=new SeleniumServer();
		rs.start();
		selenium = new DefaultSelenium("localhost",4444,"*firefox","http://www.rightstart.com/");
		
		selenium.start();
	}



	@Test
	public void testUntitled() throws Exception {
		selenium.open("/");
		selenium.click("link=Sign In");
		selenium.waitForPageToLoad("60000");
		selenium.click("class=page-title");
		selenium.click("//button[@class='button' and @type='button']");
		selenium.waitForPageToLoad("60000");
		selenium.type("id=firstname","sarada");
		selenium.type("id=lastname","iyer");
		selenium.type("id=email_address","sarada_iyer@yahoo.com");
		//selenium.select("id=hear_about_us",);
		selenium.click("class=divider");
		selenium.type("id=password","xyz");
		selenium.type("id=confirmation","xyz");
		selenium.click("class=button");
				
		Thread.sleep(5000);
				
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
		rs.stop();
	}
}

